package com.buka.constants;

import lombok.Getter;

public class Constants {
    //验证码存储时间
    public static final int CAPTCHA_CODE_EXPIRED = 5;

    public static final int ADDRESS_DEFAULT = 1;
    public static final int ADDRESS_STATUS = 0;

    public enum CouponStateEnum {
        OFFLINE("下线"),
        PUBLISH("发布"),
        DRAFT("草稿");

        @Getter
        private String desc;

        private CouponStateEnum(String desc) {
            this.desc = desc;
        }

    }


    public enum CoupUseStateEnum {
        NEW("可用"), USED("已使用"), EXPIRED("过期");

        @Getter
        String name;

        private CoupUseStateEnum(String name) {
            this.name = name;
        }

    }

    public enum CouponCategoryEnum {
        NEW_USER, PROMOTION, TASK
    }

    public enum OrderStatusEnum {
        NEW, PAY, CANCEL
    }

    public enum ClientTypeEnum{
        APP,PC,H5
    }

    public enum PayTypeEnum{
        //微信  //支付宝  //银联
        WECHAT,ALIPAY,BANK
    }

    public enum StockTaskStateEnum {


        /**
         * 锁定
         */
        LOCK,

        /**
         * 完成
         */
        FINISH,

        /**
         * 取消，释放库存
         */
        CANCEL;

    }



}
